﻿using System;
using System.Text;

class WordReplacement
{
    static void Main()
    {
        string text = "Microsoft announced its next generation PHP compiler today. " + 
            "It is based on .NET Framework 4.0 and is implemented as a dynamic language in CLR.";
        string words = "PHP, CLR, Microsoft";
        char[] separators = {',', ' '};
        string[] splitWords = words.Split(separators, StringSplitOptions.RemoveEmptyEntries);

        for (int i = 0; i < splitWords.Length; i++)
        {
            text = text.Replace(splitWords[i], new string('*', splitWords[i].Length));
        }

        Console.WriteLine(text);
    }
}
